using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Ccteg.Common;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;

namespace Ccteg.JobHostQuartz
{
    public class Program
    {
      
        public static void Main(string[] args)
        {
            string url = ConfigurationManager.ConsulServiceSettings.ServiceScheme + "://*:" + ConfigurationManager.ConsulServiceSettings.ServicePort;
            var host = WebHost.CreateDefaultBuilder(args).UseUrls(url)
                          .UseStartup<Startup>()
                              .Build();
            host.Run();
        }

         
    }
}
